package com.itjason.mapper;

import com.itjason.po.Comments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author dengxiang
* @description 针对表【comments】的数据库操作Mapper
* @createDate 2024-06-03 21:03:04
* @Entity com.itjason.po.Comments
*/
@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {

    /**
     * 删除动态评论
     * @param userId
     * @param dynamicId
     * @param commentId
     * @return
     */
    int deleteComment(@Param("userId") Integer userId,
                      @Param("dynamicId") Integer dynamicId,
                      @Param("commentId") Integer commentId);

    /**
     * 删除动态时
     * @param userId
     * @param dynamicId
     * @return
     */
    int deleteComments(@Param("userId") Integer userId,
                   @Param("dynamicId") Integer dynamicId);

}




